package me.mouse.gokistats.event;

import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.bukkit.event.inventory.ClickType;

public class MenuClickEvent extends Event {
	private static final HandlerList handlers = new HandlerList();
	private Player player;
	private int slot;
	private ClickType type;
	private int page;
	private boolean cancelled;

	public MenuClickEvent(Player player, int slot, ClickType type, int page) {
		this.player = player;
		this.slot = slot;
		this.type = type;
		this.page = page;
	}

	public Player getPlayer() {
		return this.player;
	}

	public int getSlot() {
		return this.slot;
	}

	public ClickType getClick() {
		return this.type;
	}

	public int getPage() {
		return this.page;
	}

	public boolean isCancelled() {
		return this.cancelled;
	}

	public void setCancelled(boolean cancel) {
		this.cancelled = cancel;
	}

	@Override
	public HandlerList getHandlers() {
		return handlers;
	}

	public static HandlerList getHandlerList() {
		return handlers;
	}
}
